package com.blb.thread;

public class Test3 {
    public static void main(String[] args) {
        Thread thread=new Thread(new Thread3());
        thread.start();
    }
}

class Thread3 implements Runnable {

    @Override
    public void run() {
        for (int i = 1; i < 89; i++) {
            System.out.println(Thread.currentThread().getName() + "===" + "看到了第" + i + "级");
            if(i==10){
                Thread thread=new Thread(new Thread4());
                thread.start();
            }
            try {
                Thread.sleep(3);
            } catch (InterruptedException e1) {
                e1.printStackTrace();
            }
        }
    }
}

class Thread4 implements Runnable{

    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName() + "===" + "送快递的来了");
    }
}

